/*********************************************************************
*                    SEGGER Microcontroller GmbH                     *
*        Solutions for real time microcontroller applications        *
**********************************************************************
*                                                                    *
*        (c) 1996 - 2020  SEGGER Microcontroller GmbH                *
*                                                                    *
*        Internet: www.segger.com    Support:  support@segger.com    *
*                                                                    *
**********************************************************************

** emWin V6.20 - Graphical user interface for embedded applications **
emWin is protected by international copyright laws.   Knowledge of the
source code may not be used to write a similar product.  This file may
only  be used  in accordance  with  a license  and should  not be  re-
distributed in any way. We appreciate your understanding and fairness.
----------------------------------------------------------------------
File        : SPRITE_CreateAnimSpriteByGIF.c
Purpose     : Shows how to create an animated sprite using a GIF
Requirements: WindowManager - ( )
              MemoryDevices - (x)
              AntiAliasing  - ( )
              VNC-Server    - ( )
              PNG-Library   - ( )
              TrueTypeFonts - ( )
----------------------------------------------------------------------
*/

#include <stdlib.h>
#include <string.h>

#include "GUI.h"

/*********************************************************************
*
*       Static (const) data
*
**********************************************************************
*/
static const U8 _acGIF[] = {
  0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x20, 0x00, 0x20, 0x00, 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x00, 0x00, 0x66, 0x00, 0x00, 0x99, 0x00, 0x00, 0xCC, 0x00, 0x00, 0xFF, 0x33, 0x00, 0x00, 0x33, 0x00, 0x33, 0x33, 0x00, 0x66,
  0x33, 0x00, 0x99, 0x33, 0x00, 0xCC, 0x33, 0x00, 0xFF, 0x66, 0x00, 0x00, 0x66, 0x00, 0x33, 0x66, 0x00, 0x66, 0x66, 0x00, 0x99, 0x66, 0x00, 0xCC, 0x66, 0x00, 0xFF, 0x99, 0x00, 0x00, 0x99, 0x00, 0x33, 0x99, 0x00, 0x66, 0x99, 0x00, 0x99, 0x99,
  0x00, 0xCC, 0x99, 0x00, 0xFF, 0xCC, 0x00, 0x00, 0xCC, 0x00, 0x33, 0xCC, 0x00, 0x66, 0xCC, 0x00, 0x99, 0xCC, 0x00, 0xCC, 0xCC, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x33, 0xFF, 0x00, 0x66, 0xFF, 0x00, 0x99, 0xFF, 0x00, 0xCC, 0xFF, 0x00,
  0xFF, 0x00, 0x33, 0x00, 0x00, 0x33, 0x33, 0x00, 0x33, 0x66, 0x00, 0x33, 0x99, 0x00, 0x33, 0xCC, 0x00, 0x33, 0xFF, 0x33, 0x33, 0x00, 0x33, 0x33, 0x33, 0x33, 0x33, 0x66, 0x33, 0x33, 0x99, 0x33, 0x33, 0xCC, 0x33, 0x33, 0xFF, 0x66, 0x33, 0x00,
  0x66, 0x33, 0x33, 0x66, 0x33, 0x66, 0x66, 0x33, 0x99, 0x66, 0x33, 0xCC, 0x66, 0x33, 0xFF, 0x99, 0x33, 0x00, 0x99, 0x33, 0x33, 0x99, 0x33, 0x66, 0x99, 0x33, 0x99, 0x99, 0x33, 0xCC, 0x99, 0x33, 0xFF, 0xCC, 0x33, 0x00, 0xCC, 0x33, 0x33, 0xCC,
  0x33, 0x66, 0xCC, 0x33, 0x99, 0xCC, 0x33, 0xCC, 0xCC, 0x33, 0xFF, 0xFF, 0x33, 0x00, 0xFF, 0x33, 0x33, 0xFF, 0x33, 0x66, 0xFF, 0x33, 0x99, 0xFF, 0x33, 0xCC, 0xFF, 0x33, 0xFF, 0x00, 0x66, 0x00, 0x00, 0x66, 0x33, 0x00, 0x66, 0x66, 0x00, 0x66,
  0x99, 0x00, 0x66, 0xCC, 0x00, 0x66, 0xFF, 0x33, 0x66, 0x00, 0x33, 0x66, 0x33, 0x33, 0x66, 0x66, 0x33, 0x66, 0x99, 0x33, 0x66, 0xCC, 0x33, 0x66, 0xFF, 0x66, 0x66, 0x00, 0x66, 0x66, 0x33, 0x66, 0x66, 0x66, 0x66, 0x66, 0x99, 0x66, 0x66, 0xCC,
  0x66, 0x66, 0xFF, 0x99, 0x66, 0x00, 0x99, 0x66, 0x33, 0x99, 0x66, 0x66, 0x99, 0x66, 0x99, 0x99, 0x66, 0xCC, 0x99, 0x66, 0xFF, 0xCC, 0x66, 0x00, 0xCC, 0x66, 0x33, 0xCC, 0x66, 0x66, 0xCC, 0x66, 0x99, 0xCC, 0x66, 0xCC, 0xCC, 0x66, 0xFF, 0xFF,
  0x66, 0x00, 0xFF, 0x66, 0x33, 0xFF, 0x66, 0x66, 0xFF, 0x66, 0x99, 0xFF, 0x66, 0xCC, 0xFF, 0x66, 0xFF, 0x00, 0x99, 0x00, 0x00, 0x99, 0x33, 0x00, 0x99, 0x66, 0x00, 0x99, 0x99, 0x00, 0x99, 0xCC, 0x00, 0x99, 0xFF, 0x33, 0x99, 0x00, 0x33, 0x99,
  0x33, 0x33, 0x99, 0x66, 0x33, 0x99, 0x99, 0x33, 0x99, 0xCC, 0x33, 0x99, 0xFF, 0x66, 0x99, 0x00, 0x66, 0x99, 0x33, 0x66, 0x99, 0x66, 0x66, 0x99, 0x99, 0x66, 0x99, 0xCC, 0x66, 0x99, 0xFF, 0x99, 0x99, 0x00, 0x99, 0x99, 0x33, 0x99, 0x99, 0x66,
  0x99, 0x99, 0x99, 0x99, 0x99, 0xCC, 0x99, 0x99, 0xFF, 0xCC, 0x99, 0x00, 0xCC, 0x99, 0x33, 0xCC, 0x99, 0x66, 0xCC, 0x99, 0x99, 0xCC, 0x99, 0xCC, 0xCC, 0x99, 0xFF, 0xFF, 0x99, 0x00, 0xFF, 0x99, 0x33, 0xFF, 0x99, 0x66, 0xFF, 0x99, 0x99, 0xFF,
  0x99, 0xCC, 0xFF, 0x99, 0xFF, 0x00, 0xCC, 0x00, 0x00, 0xCC, 0x33, 0x00, 0xCC, 0x66, 0x00, 0xCC, 0x99, 0x00, 0xCC, 0xCC, 0x00, 0xCC, 0xFF, 0x33, 0xCC, 0x00, 0x33, 0xCC, 0x33, 0x33, 0xCC, 0x66, 0x33, 0xCC, 0x99, 0x33, 0xCC, 0xCC, 0x33, 0xCC,
  0xFF, 0x66, 0xCC, 0x00, 0x66, 0xCC, 0x33, 0x66, 0xCC, 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 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0xFF, 0x0B, 0x4E, 0x45, 0x54, 0x53, 0x43, 0x41, 0x50, 0x45, 0x32, 0x2E, 0x30, 0x03, 0x01, 0xE8, 0x03, 0x00,
  0x21, 0xF9, 0x04, 0x09, 0x14, 0x00, 0xD2, 0x00, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x07, 0x08, 0x94, 0x00, 0xA5, 0x09, 0x1C, 0x48, 0xB0, 0xA0, 0xC1, 0x83, 0x08, 0x13, 0x2A, 0x5C, 0xC8, 0xB0, 0xA1, 0xC3, 0x87, 0x10, 0x23,
  0x46, 0x7C, 0x43, 0xB1, 0xA2, 0x45, 0x8A, 0x00, 0x24, 0x4A, 0xA3, 0x98, 0xAB, 0x63, 0xAE, 0x8B, 0x6F, 0x32, 0x6A, 0x04, 0x40, 0xB2, 0xA4, 0x49, 0x91, 0x1A, 0x03, 0xB1, 0x5A, 0xC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0x2C, 0x79, 0x31, 0x63, 0xAE, 0x91,
  0x2A, 0x57, 0x72, 0x74, 0x09, 0x33, 0x26, 0xC9, 0x96, 0x6F, 0x5E, 0xDA, 0x24, 0x79, 0x73, 0x22, 0xCA, 0x91, 0xD7, 0xAE, 0x01, 0xE0, 0x59, 0xD1, 0x64, 0x20, 0x92, 0x42, 0x89, 0x9A, 0x94, 0x76, 0x14, 0x80, 0xD0, 0xA4, 0x81, 0xA2, 0x06, 0x62,
  0x09, 0xB1, 0xA2, 0xD5, 0x6B, 0x3B, 0x7B, 0x82, 0x0C, 0x84, 0x75, 0x27, 0x55, 0x89, 0x5C, 0xB3, 0x92, 0x2C, 0x3A, 0x31, 0xAC, 0x57, 0x94, 0x5F, 0x1D, 0x72, 0xED, 0xBA, 0xF2, 0x27, 0xC7, 0xA3, 0x41, 0xDB, 0xA2, 0x34, 0xCA, 0x2A, 0xA8, 0xC8,
  0xA5, 0x4C, 0x49, 0xE6, 0x7C, 0x83, 0x57, 0x20, 0xCD, 0xBE, 0x02, 0xF7, 0x02, 0x0E, 0xCC, 0x77, 0xB0, 0xE1, 0xC3, 0x88, 0x13, 0x73, 0x0C, 0x08, 0x00, 0x21, 0xFE, 0xEF, 0x54, 0x68, 0x69, 0x73, 0x20, 0x47, 0x49, 0x46, 0x20, 0x66, 0x69, 0x6C,
  0x65, 0x20, 0x77, 0x61, 0x73, 0x20, 0x61, 0x73, 0x73, 0x65, 0x6D, 0x62, 0x6C, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x47, 0x49, 0x46, 0x20, 0x43, 0x6F, 0x6E, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x53, 0x65,
  0x74, 0x20, 0x66, 0x72, 0x6F, 0x6D, 0x3A, 0x0D, 0x0A, 0x0D, 0x0A, 0x41, 0x6C, 0x63, 0x68, 0x65, 0x6D, 0x79, 0x20, 0x4D, 0x69, 0x6E, 0x64, 0x77, 0x6F, 0x72, 0x6B, 0x73, 0x20, 0x49, 0x6E, 0x63, 0x2E, 0x0D, 0x0A, 0x50, 0x2E, 0x4F, 0x2E, 0x20,
  0x42, 0x6F, 0x78, 0x20, 0x35, 0x30, 0x30, 0x0D, 0x0A, 0x42, 0x65, 0x65, 0x74, 0x6F, 0x6E, 0x2C, 0x20, 0x4F, 0x6E, 0x74, 0x61, 0x72, 0x69, 0x6F, 0x0D, 0x0A, 0x4C, 0x30, 0x47, 0x20, 0x31, 0x41, 0x30, 0x0D, 0x0A, 0x43, 0x41, 0x4E, 0x41, 0x44,
  0x41, 0x2E, 0x0D, 0x0A, 0x0D, 0x0A, 0x54, 0x68, 0x69, 0x73, 0x20, 0x63, 0x6F, 0x6D, 0x6D, 0x65, 0x6E, 0x74, 0x20, 0x62, 0x6C, 0x6F, 0x63, 0x6B, 0x20, 0x77, 0x69, 0x6C, 0x6C, 0x20, 0x6E, 0x6F, 0x74, 0x20, 0x61, 0x70, 0x70, 0x65, 0x61, 0x72,
  0x20, 0x69, 0x6E, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x73, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x20, 0x76, 0x65, 0x72, 0x73,
  0x69, 0x6F, 0x6E, 0x20, 0x6F, 0x66, 0x20, 0x47, 0x49, 0x46, 0x20, 0x43, 0x6F, 0x6E, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x53, 0x65, 0x74, 0x00, 0x21, 0xFF, 0x0B, 0x47, 0x49, 0x46, 0x43, 0x4F, 0x4E, 0x6E, 0x62, 0x31,
  0x2E, 0x30, 0x02, 0x0F, 0x00, 0x0E, 0x2F, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2F, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C,
  0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x35, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x2F, 0x00, 0x02, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x2F, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65,
  0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x36, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x2F, 0x00, 0x02, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2F, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65,
  0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x37, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x2F, 0x00, 0x02, 0x00, 0x09,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2F, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C,
  0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x38, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x2F, 0x00, 0x02, 0x00, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2F, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44,
  0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x39, 0x2E, 0x67, 0x69, 0x66, 0x00,
  0x0E, 0x30, 0x00, 0x02, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C,
  0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x31, 0x30, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x30, 0x00, 0x02, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
  0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77,
  0x2D, 0x31, 0x31, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x30, 0x00, 0x02, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74,
  0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x31, 0x32, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x30, 0x00, 0x02, 0x00, 0x13, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C,
  0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x31, 0x33, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x30, 0x00, 0x02, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F,
  0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x31, 0x34, 0x2E, 0x67, 0x69, 0x66, 0x00,
  0x0E, 0x30, 0x00, 0x02, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C,
  0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x31, 0x35, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x30, 0x00, 0x02, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
  0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77,
  0x2D, 0x31, 0x36, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x30, 0x00, 0x02, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74,
  0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x31, 0x37, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x30, 0x00, 0x02, 0x00, 0x1D, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F, 0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C,
  0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x31, 0x38, 0x2E, 0x67, 0x69, 0x66, 0x00, 0x0E, 0x30, 0x00, 0x02, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x43, 0x3A, 0x5C, 0x57, 0x49, 0x4E, 0x44, 0x4F,
  0x57, 0x53, 0x5C, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x5C, 0x41, 0x6E, 0x69, 0x6D, 0x5C, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x5C, 0x74, 0x69, 0x6D, 0x65, 0x5C, 0x4E, 0x65, 0x77, 0x2D, 0x31, 0x39, 0x2E, 0x67, 0x69, 0x66, 0x00,
  0x00, 0x3B, 0x00
};

/*********************************************************************
*
*       Static code
*
**********************************************************************
*/
/*********************************************************************
*
*       _GetData
*/
static int _GetData(void * pVoid, const U8 ** ppData, unsigned NumBytesReq, U32 Off) {
  static U8 acBuffer[0x200];
  U8 * pImage;

  pImage = (U8 *)pVoid;
  //
  // Check buffer size
  //
  if (NumBytesReq > sizeof(acBuffer)) {
    NumBytesReq = sizeof(acBuffer);
  }
  //
  // Read data into buffer
  //
  memcpy(acBuffer, pImage + Off, NumBytesReq);
  //
  // Set data pointer to the beginning of the buffer
  //
  *ppData = acBuffer;
  //
  // Return number of available bytes
  //
  return NumBytesReq;
}

/*********************************************************************
*
*       _CreateAnimateStriteFromGIF
*/
static void _CreateAnimateStriteFromGIF(void) {
  GUI_MEMDEV_Handle hMem, hMemOld;
  GUI_GIF_INFO Info;
  GUI_GIF_IMAGE_INFO ImageInfo;
  char ** apImage;
  int BitmapSize;
  unsigned i;
  static GUI_COLOR aColor[256];
  void * pData;
  GUI_BITMAP * apBm;
  GUI_BITMAP ** ppBm;
  static GUI_LOGPALETTE Pal;
  unsigned * pDelay;
  
  //
  // Calculate palette entries
  //
  for (i = 0; i < GUI_COUNTOF(aColor); i++) {
    aColor[i] = LCD_API_ColorConv_8666.pfIndex2Color(i);
  }
  //
  // Initialize palette
  //
  Pal.pPalEntries = aColor;
  Pal.HasTrans    = 0;
  Pal.NumEntries  = 256;
  //
  // Get GIF information
  //
  GUI_GIF_GetInfoEx(_GetData, (void *)_acGIF, &Info);
  //
  // Allocate memory for pixel pointers
  //
  apImage = (char **)malloc(sizeof(char *) * Info.NumImages);
  BitmapSize = Info.xSize * Info.ySize;
  //
  // Allocate memory for bitmap structures
  //
  apBm = (GUI_BITMAP *)malloc(sizeof(GUI_BITMAP) * Info.NumImages);
  ppBm = (GUI_BITMAP **)malloc(sizeof(GUI_BITMAP *) * Info.NumImages);
  //
  // Allocate memory for delays
  //
  pDelay = (unsigned *)malloc(sizeof(unsigned) * Info.NumImages);
  //
  // Create and select temporary memory device
  //
  hMem = GUI_MEMDEV_CreateFixed(0, 0, Info.xSize, Info.ySize, GUI_MEMDEV_NOTRANS, GUI_MEMDEV_APILIST_8, GUICC_8666);
  hMemOld = GUI_MEMDEV_Select(hMem);
  for (i = 0; i < (unsigned)Info.NumImages; i++) {
    //
    // Draw sub image into memory device
    //
    GUI_GIF_DrawSubEx(_GetData, (void *)_acGIF, 0, 0, i);
    GUI_GIF_GetImageInfoEx(_GetData, (void *)_acGIF, &ImageInfo, i);
    *(pDelay + i) = ImageInfo.Delay * 10;
    //
    // Allocate memory for pixels
    //
    *(apImage + i) = (char *)malloc(BitmapSize);
    //
    // Copy data from memory device into pixel array
    //
    pData = GUI_MEMDEV_GetDataPtr(hMem);
    memcpy(*(apImage + i), pData, BitmapSize);
    //
    // Initialize bitmap structure
    //
    (apBm + i)->BitsPerPixel = 8;
    (apBm + i)->BytesPerLine = Info.xSize;
    (apBm + i)->pData        = (const U8 *)*(apImage + i);
    (apBm + i)->pMethods     = NULL;
    (apBm + i)->pPal         = &Pal;
    (apBm + i)->XSize        = Info.xSize;
    (apBm + i)->YSize        = Info.ySize;
    *(ppBm + i) = (apBm + i);
  }
  //
  // Deselect and free temporary memory device
  //
  GUI_MEMDEV_Select(hMemOld);
  GUI_MEMDEV_Delete(hMem);
  //
  // Create animated sprite
  //
  GUI_SPRITE_CreateAnim((const GUI_BITMAP **)ppBm, 0, 0, 0, pDelay, Info.NumImages);
}

/*********************************************************************
*
*       Public code
*
**********************************************************************
*/
/*********************************************************************
*
*       MainTask
*/
void MainTask(void) {
  GUI_Init();
  _CreateAnimateStriteFromGIF();
  while (1) {
    GUI_Delay(100);
  }
}

/*************************** End of file ****************************/
